<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ClassAddEdit.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.ClassAddEdit" %>
<%@ Register Src="ClassPropertyAddEdit.ascx" TagName="ClassPropertyAddEdit" TagPrefix="uc1" %>
<table>
<tr>
    <td align="center">
        <asp:Label runat="server" ID="lblStatus" ForeColor="#1A5688" Font-Bold="True" Font-Size="Medium"/>
    </td>
</tr>
<tr>
    <td>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" />
    </td>
</tr>
<tr><td ><asp:Label ID="Label1" runat="server" Text="Class type"></asp:Label><asp:DropDownList
        ID="ddlClassType" runat="server" DataSourceID="ODSClassType" DataTextField="Name" DataValueField="ID" AutoPostBack="True" OnSelectedIndexChanged="ddlClassType_SelectedIndexChanged">
    </asp:DropDownList><asp:ObjectDataSource ID="ODSClassType" runat="server" SelectMethod="GetClassTypeList"
    TypeName="IGlobalist.Cms.Bll.ClassTypeController"></asp:ObjectDataSource>
</td></tr>
<tr><td>
    <fieldset>
       <legend><asp:Label ID="Label2" runat="server" Text="Class Info"></asp:Label></legend>
       <table cellpadding="2" cellspacing="2">
       <tr><td><asp:Label ID="Label3" runat="server" Text="Name"></asp:Label></td>
       <td><asp:TextBox ID="tbName" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="Must enter name" ControlToValidate="tbName" >*</asp:RequiredFieldValidator>                             
             <asp:Label ID="lblError" runat="server" Text="" ForeColor="red"></asp:Label></td>
       </tr>
       <tr><td valign="top"><asp:Label ID="Label4" runat="server" Text="Description"></asp:Label></td><td><asp:TextBox ID="tbDescription" runat="server"  Height="100px"  TextMode="MultiLine" ></asp:TextBox></td></tr>
        <tr><td><asp:Label ID="Label5" runat="server" Text="Usage"></asp:Label></td><td>
                <asp:DropDownList runat="server" ID="ddlUsageType" >
                    <asp:ListItem Value="1" Text="Both">
                    </asp:ListItem>
                    <asp:ListItem Value="2" Text="System">
                    </asp:ListItem>
                    <asp:ListItem Value="3" Text="User">
                    </asp:ListItem>
                </asp:DropDownList>        
        
               </td></tr>  
             
            <tr><td><asp:Label ID="lblType" runat="server" Text="Type" Visible="false"></asp:Label></td><td>
                <asp:DropDownList runat="server" ID="ddlTypePr" Visible="false" >
                    <asp:ListItem Value="News" Text="News">
                    </asp:ListItem>
                    <asp:ListItem Value="Product" Text="Product">
                    </asp:ListItem>
                    <asp:ListItem Value="Media" Text="Media">
                    </asp:ListItem>
                </asp:DropDownList>        
        
               </td></tr>     
            
       </table>
                   
    </fieldset>
</td></tr>

<tr><td>
    <fieldset>
       <legend><asp:Label ID="Label7" runat="server" Text="Properties"></asp:Label></legend>
        <uc1:ClassPropertyAddEdit id="classPropertyAddEdit" runat="server">
        </uc1:ClassPropertyAddEdit></fieldset>
</td></tr>
</table>
